import request from '../utils/request';

export async function createWork(body) {
  console.log('createWork',body);
  return request('/api/work/create', {
    method: 'POST',  body,
  });
}

export async function deleteWork(body) {
  return request('/api/work/delete', {
    method: 'POST',  body,
  });
}

export async function updateWork(body) {
  return request('/api/work/update', {
    method: 'POST',  body,
  });
}
export async function findWork(body) {
  return request('/api/work/find', {
    method: 'POST',  body,
  });
}
export async function findWorkMany(body) {
  return request('/api/work/find/many', {
    method: 'POST',  body,
  });
}
export async function endWork(body) {
  return request('/api/work/end', {
    method: 'POST', body,
  });

}
  export async function createWorkTimer(body) {
    console.log('createWork',body);
    return request('/api/work/timer/create', {
      method: 'POST',  body,
    });
  }

  export async function deleteWorkTimer(body) {
    return request('/api/work/timer/delete', {
      method: 'POST',  body,
    });
  }

  export async function updateWorkTimer(body) {
    return request('/api/work/timer/update', {
      method: 'POST',  body,
    });
  }
  export async function findWorkTimer(body) {
    return request('/api/work/timer/find', {
      method: 'POST',  body,
    });
  }
  export async function findWorkTimerMany(body) {
    return request('/api/work/timer/find/many', {
      method: 'POST',  body,
    });
  }

